package org.zhenggn.invoke;

import org.zhenggn.invoke.impl.Salary;

/**
 * Created by zhenggn on 2017/9/5.
 */
public class Client {

    public static void main(String[] args) {
        SimpleProxy simpleProxy = new SimpleProxy();
        SalaryInterface salaryInterface =
                (SalaryInterface) simpleProxy.bind(new Salary(), new TimeAdvice());
        salaryInterface.doSalary();



    }

}
